#include "Mesh.h"

//********************************************************************************************
// constructor
//
//********************************************************************************************
Mesh::Mesh(LPD3DXMESH mesh, D3DMATERIAL9* material, DWORD numMaterials)
{
	this->mesh = mesh;
	this->material = material;
	this->numMaterials = numMaterials;
}

Mesh::~Mesh(){}

//********************************************************************************************
//********************************************************************************************
//                                   GETTERS and SETTERS
//
//********************************************************************************************
//********************************************************************************************
LPD3DXMESH Mesh::getMesh()
{
	return this->mesh;
}

D3DMATERIAL9* Mesh::getMaterial()
{
	return this->material;
}

DWORD Mesh::getNumMaterials()
{
	return this->numMaterials;
}

void Mesh::setMesh(LPD3DXMESH mesh)
{
	this->mesh = mesh;
}

void Mesh::setMaterial(D3DMATERIAL9* material)
{
	this->material = material;
}

void Mesh::setNumMaterial(DWORD numMaterials)
{
	this->numMaterials = numMaterials;
}

//********************************************************************************************
//********************************************************************************************
//                                 /GETTERS and SETTERS
//
//********************************************************************************************
//********************************************************************************************